package example.chongqingao;


import com.wh.client.chongqingao.CSPRequestServiceLocator;
import com.wh.client.chongqingao.CSPResult;

import javax.xml.rpc.ServiceException;
import java.rmi.RemoteException;

public class ChongQingAo {

    public static void main(String[] args) throws ServiceException, RemoteException {

        String cspId = "WASUOTT";
        String lspId = "WASUOTT";
        String sid = args[0];
        String ftpPath = "ftp://wasucq:w1a2s3u4@125.210.99.48:21/ao/jichubao/"+args[1];
        CSPRequestServiceLocator local = new CSPRequestServiceLocator();

        CSPResult cSPResult = local.getctms().execCmd(cspId, lspId,
                sid,
                ftpPath);
        System.out.println(String.format("重庆AO VOD发布返回参数{correlateID: %s, 状态result: %s, 成功或失败信息: %s",
                sid, cSPResult.getResult(), cSPResult.getErrorDescription()));



    }
}
